﻿using UnityEngine;
using System.Collections;

public class EnemyCarriage : CarriageScriptBase
{
	Transform player;


	protected override void GetEnemies()
	{
		player = GameObject.FindGameObjectWithTag ("Player").transform;
		currentEnemy = player;
	}
	
	
	protected override bool CheckIfEnemyInRange()
	{
		float dist = Vector3.Distance (transform.position, player.position);
		return (dist<MaxAttackRange);
	}

}